
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2022/7/4
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>超市账单管理系统</title>
    <link rel="stylesheet" href="css/public.css"/>
    <link rel="stylesheet" href="css/style.css"/>
</head>
<body>

<!--主体内容-->
<%@include file="/checkLogin.jsp"%>
<section class="publicMian ">

    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>课程管理 >> 课程添加</span>
        </div>
        <div class="providerAdd">
            <form action="addSubject" method="post">
                <!--div的class 为error是验证错误，ok是验证成功-->
                <div>
                    <%--<%--%>
                        <%--String msg=(String)request.getAttribute("msg");--%>
                    <%--%>--%>
                    <%--<span style="font-size:40px;color:red;">--%>
                        <%--<%=msg==null?"":msg%>--%>
                    <%--</span>--%>
                </div>
                <div>
                    <label for="subjectname">课程名称：</label>
                    <input type="text" name="subjectname" id="subjectname" required/>
                    <span >*请输入课程名称</span>
                </div>
                <div>
                    <label for="classhour">课时：</label>
                    <input type="number" name="classhour" id="classhour" min="1" required/>
                    <span>*请输入课时</span>
                </div>


                <div>
                    <label >年级：</label>
                    <select name="gradeid" >
                        <%--<%--%>
                            <%--for (Grade grade : all) {--%>
                        <%--%>--%>
                            <c:forEach items="${all}" var="grade">
                        <option value="${grade.id}">${grade.gname}</option>
                            </c:forEach>
                    </select>
                    <span>*请选择年级</span>
                </div>

                <div class="providerAddBtn">
                    <!--<a href="#">保存</a>-->
                    <!--<a href="billList.html">返回</a>-->
                    <input type="submit" value="保存" />
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>

    </div>
</section>
</body>
</html>
